-- GENERATED SPELL FOR [Mirefin Oracle] --


function spell0_4363(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(959,pUnit)
pUnit:RegisterEvent('Sorts_4363', 3000, 1)
end

function spell1_4363(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4363', 3000, 1)
end

function Sorts_4363(pUnit, Event)
local choix_sorts_4363 = math.random(0, 1)
if choix_sorts_4363 == 0 then
pUnit:RegisterEvent('spell0_4363', 1, 1)
end
if choix_sorts_4363 == 1 then
pUnit:RegisterEvent('spell1_4363', 1, 1)
end
end

function mob4363_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4363', math.random(1500, 3000), 1)
end

function mob4363_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4363_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4363_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4363, 1, 'mob4363_Action')
RegisterUnitEvent(4363, 2, 'mob4363_Leave')
RegisterUnitEvent(4363, 3, 'mob4363_Kill')
RegisterUnitEvent(4363, 4, 'mob4363_Die')
